<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Notification extends CI_Controller {
    function __construct() {
        parent::__construct();
        date_default_timezone_set('UTC');
        $this->load->model('manage_notifications');
    }
    public function index() {
         
    }
    function getNotifications(){
        $user_id = $this->input->cookie('LEAPSESSID');
        $notifications = $this->manage_notifications->getNotifications($user_id);
        echo json_encode($notifications);
    }
}